package com.comverse.timesheet.web.business;

import java.util.Date;
import com.comverse.timesheet.web.bean.TestTable;
import com.comverse.timesheet.web.dao.ITestTableDAO;

public class TestBusiness {
	private ITestTableDAO testDAO=null;

	public ITestTableDAO getTestDAO() {
		return testDAO;
	}

	public void setTestDAO(ITestTableDAO testDAO) {
		this.testDAO = testDAO;
	}
	
	public void add() throws Exception{ 
        TestTable test=new TestTable(); 
        test.setName("yuanmomo6"); 
        test.setBirthday(new Date()); 
        try { 
            testDAO.add(test); 
        } catch (Exception e) { 
            throw e; 
        } 
    }
}
